AppOpsManagerCompat
Helper for accessing features in android.app.AppOpsManager.
Properties
Link copied to clipboard
Result from noteOp: the given caller is allowed to perform the given operation.
Link copied to clipboard
Result from noteOp: the given caller should use its default security check.
Link copied to clipboard
Result from noteOpNoThrow: the given caller is not allowed to perform the given operation, and this attempt should cause it to have a fatal error, typically a SecurityException.
Link copied to clipboard
Result from noteOp: the given caller is not allowed to perform the given operation, and this attempt should silently fail (it should not cause the app to crash).
Functions
Link copied to clipboard
Link copied to clipboard
open fun noteProxyOp(@NonNull context: @NonNull Context, @NonNull op: @NonNull String, @NonNull proxiedPackageName: @NonNull String): Int
Make note of an application performing an operation on behalf of another application when handling an IPC.
Link copied to clipboard
open fun noteProxyOpNoThrow(@NonNull context: @NonNull Context, @NonNull op: @NonNull String, @NonNull proxiedPackageName: @NonNull String): Int
Link copied to clipboard
Gets the app op name associated with a given permission.